<!DOCTYPE html>
<html lang="en">
  <head>
    <meta charset="UTF-8" />
    <meta name="viewport" content="width=device-width, initial-scale=1.0" />
    <style>
      * {
        margin: 0;
        padding: 0;
      }
      body,
      html {
        height: 100%;
      }
      .wrapper {
        height: 100%;
        background-color: antiquewhite;
        display: flex;
        flex-direction: column;
      }
      .top {
        height: 200px;
        background-color: red;
        flex-grow: 0;
        flex-shrink: 0;
        flex-basis: auto;
        display: flex;
        flex-direction: row;
        justify-content: space-between;
        align-items: stretch;
      }
      .top-left {
        width: 100px;
        background-color: green;
      }
      .top-right {
        width: 200px;
        background-color: blue;
        display: flex;
        justify-content: space-around;
      }
      .bottom {
        flex-grow: 1;
        flex-shrink: 1;
        flex-basis: auto;
        background-color: grey;
        display: flex;
        flex-direction: row;
        /* height: calc(100% - 200px); */
        overflow: auto;
      }
      .nav {
        width: 200px;
        background-color: blue;
        flex-grow: 0;
        flex-shrink: 0;
        flex-basis: 200px;
        overflow: auto;
      }
      .main {
        flex-grow: 1;
        flex-shrink: 1;
        flex-basis: auto;
        background-color: yellow;
        overflow: auto;
      }
      .item {
        height: 2000px;
        background-color: gainsboro;
      }
    </style>
    <title>Document</title>
  </head>
  <body>
    <div class="wrapper">
      <div class="top">
        <div class="top-left">logo</div>
        <div class="top-right">
          <div>1</div>
          <div>2</div>
          <div>2</div>
        </div>
      </div>
      <div class="bottom">
        <div class="nav">
          <div class="item">菜单属性</div>
        </div>
        <div class="main">
          <div class="item">菜单属性</div>
          右边不固定，铺满
        </div>
      </div>
    </div>
  </body>
</html>
